//
// Created by root on 19-7-29.
//

#include "class_utils.h"

jobject get_class_classloader(JNIEnv *env, jclass clazz) {
    jclass class_class=env->FindClass("java/lang/Class");
    jmethodID get_class_loader=env->GetMethodID(class_class,"getClassLoader",
            "()Ljava/lang/ClassLoader;");
    jobject class_loader=env->NewGlobalRef(
            env->CallObjectMethod(clazz,get_class_loader)
    );
    return class_loader;
}
